﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConversionSettings.aspx.cs" Inherits="WordConversionManager.Layouts.WordConversionManager.ConversionSettings" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="ms-error">
                <asp:Literal ID="ErrorMessageLiteral" runat="server" EnableViewState="false" />
            </td>
        </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
                <wssuc:InputFormSection runat="server" Title="Supported file format" Description="The files with following extensions will be converted. Separate multiple entries with the comma (,).">
                    <template_inputformcontrols>
			            <tr>
			                <td>
                                <asp:TextBox ID="SupportedInputFormats" runat="server" Width="300"></asp:TextBox>
			                </td>
			            </tr>
		            </template_inputformcontrols>
                </wssuc:InputFormSection>
                <wssuc:InputFormSection runat="server" Title="Convert to" Description="The document will be converted to the following format(s).">
                    <template_inputformcontrols>
			            <tr>
			                <td>
                                <asp:CheckBoxList ID="outputFileFormatDropDown" runat="server" Width="225">
                                   <asp:ListItem Text="Automatic" Value="Automatic"></asp:ListItem>
                                    <asp:ListItem Text="Document" Value="Document"></asp:ListItem>
                                    <asp:ListItem Text="DocumentMacroEnabled" Value="DocumentMacroEnabled"></asp:ListItem>
                                    <asp:ListItem Text="Document97" Value="Document97"></asp:ListItem>
                                    <asp:ListItem Text="Template" Value="Template"></asp:ListItem>
                                    <asp:ListItem Text="TemplateMacroEnabled" Value="TemplateMacroEnabled"></asp:ListItem>
                                    <asp:ListItem Text="Template97" Value="Template97"></asp:ListItem>
                                    <asp:ListItem Text="MHTML" Value="MHTML"></asp:ListItem>
                                    <asp:ListItem Text="PDF" Value="PDF"></asp:ListItem>
                                    <asp:ListItem Text="RTF" Value="RTF"></asp:ListItem>
                                    <asp:ListItem Text="XML" Value="XML"></asp:ListItem>
                                    <asp:ListItem Text="XPS" Value="XPS"></asp:ListItem>
                                </asp:CheckBoxList>
			                </td>
			            </tr>
		            </template_inputformcontrols>
                </wssuc:InputFormSection>
                 <wssuc:InputFormSection runat="server" Title="Destination Document Library" Description="Specify the document library where converted files will be stored.">
                    <template_inputformcontrols>
			            <tr>
			                <td>
                                <asp:DropDownList ID="DestionationListDropDown" runat="server"  Width="225"/>
			                </td>
			            </tr>
		            </template_inputformcontrols>
                </wssuc:InputFormSection>
                <wssuc:InputFormSection runat="server" Title="Overwrite destination file" Description="If the file with the same name exists in the destination list shall it be (1) - Overwritten, (2) - Saved along with unique identifier or (3) - Discharged">
                    <template_inputformcontrols>
			            <tr>
			                <td>
                               <asp:DropDownList ID="OverwriteFileDropDown" runat="server"  Width="225">
                                   <asp:ListItem Text="Overwrite" Value="Overwrite" Selected="True"></asp:ListItem>
                                   <asp:ListItem Text="Save and append unique identifier" Value="SaveAppendUnique"></asp:ListItem>
                                   <asp:ListItem Text="Discharge" Value="Discharge"></asp:ListItem>
                                </asp:DropDownList>
			                </td>
			            </tr>
		            </template_inputformcontrols>
                </wssuc:InputFormSection>
                <wssuc:InputFormSection runat="server" Title="Sequence Number" Description="Specifies the order, if multiple event handlers are associated with this list.">
                    <template_inputformcontrols>
			            <tr>
			                <td>
                               <asp:TextBox ID="sequenceTextBox" runat="server"  Width="225"></asp:TextBox>
                               <asp:RequiredFieldValidator ID="sequenceRequiredFieldValidator" runat="server" ErrorMessage="This value is required!" ControlToValidate="sequenceTextBox"></asp:RequiredFieldValidator><br />
                               <asp:RangeValidator ID="sequenceRangeValidator" runat="server" ErrorMessage="Please enter a numeric value between 0 and 32767!" MinimumValue="0" MaximumValue="32767" ControlToValidate="sequenceTextBox"></asp:RangeValidator>
			                </td>
			            </tr>
		            </template_inputformcontrols>
                </wssuc:InputFormSection>
                <wssuc:InputFormSection runat="server" Title="Supported Events" Description="The conversion will occur post these events">
                    <template_inputformcontrols>
			            <tr>
			                <td>
                               <asp:CheckBoxList ID="eventsCheckBoxList" runat="server" RepeatColumns="2">
                                <asp:ListItem Text="ItemAdded" Value="ItemAdded"></asp:ListItem>
                                <asp:ListItem Text="ItemCheckedIn" Value="ItemCheckedIn"></asp:ListItem>
                                <asp:ListItem Text="ItemUpdated" Value="ItemUpdated"></asp:ListItem>
                               </asp:CheckBoxList>
			                </td>
			            </tr>
		            </template_inputformcontrols>
                </wssuc:InputFormSection>
                <wssuc:ButtonSection runat="server">
                    <template_buttons>
                        <asp:Button id="SaveSettingsButton" runat="server" class="ms-ButtonHeightWidth" Text="OK" OnClick="SaveSettingsButton_OnClick" />
                    </template_buttons>
                </wssuc:ButtonSection>
            </td>
        </tr>
    </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Configure Word Conversion Settings
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Configure Word Conversion Settings
</asp:Content>
